#ifndef __MODBUS_TCP_H
#define __MODBUS_TCP_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif



#define MBSTAADD1  	0
#define MBLENGTH1 	8

#define MBSTAADD3  	0
#define MBLENGTH3 	8


extern uint8_t  rtubuf1[MBLENGTH1/8];
extern uint16_t rtubuf3[MBLENGTH3];
uint8_t TCPMDSaveData(uint16_t add,uint8_t* p_val,uint16_t length_word,uint8_t channel);	
uint16_t tcp_modslv(uint8_t * rbuf,uint8_t *sbuf,uint8_t channle);


#ifdef __cplusplus
}
#endif


#endif 


